<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>基本资料 - 我的管理中心</title>
{include file="head"}
<link href="/static/thinkct/css/basic.css?v=1" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/jquery.m.js"></script><script language="javascript" src="/static/thinkct/js/layui/layui.js"></script><script language="javascript" src="/static/thinkct/js/common.js?v=1"></script><script language="javascript" src="/static/thinkct/js/member.js?v=1"></script><link href="/static/thinkct/css/member.css?v=1" rel="stylesheet" type="text/css" /><link href="/static/thinkct/js/layui/css/layui.css" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/plupload.js"></script><script language="javascript" src="/static/thinkct/js/upload.js"></script></head>
<body>
<!--头部-->
{include file="uhead"}

<!--头部-->
<div class="umain">
{include file="uleft"}
<div class="uright">
<div class="mwz"><li class="cur">基本资料</li></div>
<form class="layui-form layui-font14"  name="" action="" method="post" enctype="multipart/form-data">
<div class="layui-form-item">
    <label class="layui-form-label"><span class="red">*</span> 昵称</label>
    <div class="layui-input-inline">
	<input  name="name" class="layui-input checkLen" d_len="7" value="{$data.name}" maxlength="14"   lay-verify="nice" size="14" type="text" placeholder="请输入2~7位昵称"/>
    </div>
	<div class="layui-inline"><div class="layui-form-mid layui-word-aux " style="color:red"></div></div>

</div>

<div class="layui-form-item">
    <label class="layui-form-label">QQ号</label>
    <div class="layui-input-inline">
		<input  name="qq" class="layui-input" value="{$data.contact}" maxlength="11" lay-verify="qq" size="11" type="text" placeholder="请输入常用联系QQ（1个）"/>
    </div>
		<div class="layui-form-mid layui-word-aux">该QQ仅作为买家时使用，商家QQ客服请在店铺管理的<a href='/setup/service' style='text-decoration:underline'>客服</a>中设置</div>   
    
	
</div>

 
<div class="layui-form-item">
    <label class="layui-form-label">微信号</label>
    <div class="layui-input-inline">
	<input  name="wechat" class="layui-input" value="{$data.wechat}" maxlength="20" lay-verify="wechat" size="20" type="text" placeholder="请输入您的微信号（1个）"/>
    </div>
			<div class="layui-form-mid layui-word-aux">该微信号仅作为买家时使用，商家微信客服请在店铺管理的<a href='/setup/service' style='text-decoration:underline'>客服</a>中设置</div>   
    </div>

<div class="layui-form-item">
    <label class="layui-form-label">个人头像</label>
    <div class="layui-input-block">

	<div class="layui-box layui-upload-button"><input type="file" name="file" id="picinp" class="layui-upload-file" accept="image/png,image/jpeg,image/gif" onchange="checkfile(this,'pic')"><span class="layui-upload-icon"><i class="layui-icon"></i>选择图片</span></div>
	<div class="layui-inline"><div class="layui-form-mid layui-word-aux">头像宽高需相等，且均不低于100px；大小上限100KB；格式JPG,GIF,PNG</div></div>
	<div class="layui-inline"><div class="layui-form-mid layui-word-aux " style="color:red"></div></div>

	<br>
<div class="div_preview" pixel_data='1' size_data="102400"  style='width:100px;height:100px;background:url("{$data.tx}?x-oss-process=image/resize,h_100,w_100") no-repeat;' id="pic">
<img src=""></div>
</div>
</div>

<div class="layui-form-item" style='padding-bottom:15px;'>
    <label class="layui-form-label"></label>
    <div class="layui-input-block"><input type="submit" class="layui-btn" lay-submit=""  value="确认提交" /></div>
</div>
</form>
 </div>
</div>
{include file="bottom"}<script type="text/javascript">
 layui.use('form', function(){
 var form = layui.form();
form.verify({
  wechat: function(value){
    if(value!='' && !/(.+){6,20}$/.test(value)){
      return '微信号可以不填，否则长度为6-20位之间';
    }
  }
});      
form.on('submit', function(data) {
progress(true);return true;
});
});
</script>
</body>
</html>